﻿using System;
using System.Configuration;

namespace Yz.Base
{
    public class MqConfig
    {
        /// <summary>
        ///     用户名
        /// </summary>
        public static string UserName => ConfigurationManager.AppSettings["MqUName"];

        /// <summary>
        ///     密码
        /// </summary>
        public static string Password => ConfigurationManager.AppSettings["MqUpwd"];

        /// <summary>
        ///     VirtualHost
        /// </summary>
        public static string VirtualHost => ConfigurationManager.AppSettings["MqVhost"];

        /// <summary>
        ///     端口
        /// </summary>
        public static int Port => Convert.ToInt32(ConfigurationManager.AppSettings["MqPort"]);

        /// <summary>
        ///     HostName
        /// </summary>
        public static string HostName => ConfigurationManager.AppSettings["MqHostName"]; 
    }
}